<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="k" uri="/WEB-INF/k.tld"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>怀才进销存管理软件 - 销售前台</title>
		<jsp:include page="../inc.jsp"></jsp:include>
		<link href="${pageContext.request.contextPath}/web/css/style.css" rel="stylesheet" type="text/css" />
		<SCRIPT language="JavaScript" type="text/javascript" src="${pageContext.request.contextPath}/web/js/hdm.js"></SCRIPT>
		<SCRIPT>
		var calendar;
		$(function(){
		
			calendar = $('#calendar').calendar({
				fit : true,
				current : new Date(),
				border : false,
				onSelect : function(date) {
					$(this).calendar('moveTo', new Date());
				}
			});
			
		});
		
		function logout(){
			sy.messagerConfirm('请确认', '您确定要退出前台销售？', function(r) {
				if(r){
					$.ajax({
						url : '${pageContext.request.contextPath}/loginAction!logout.html',
						type : 'get',
						success:function(){
							self.location.reload();
							if(window.opener){
								opener.location = opener.location;
							}
							window.close();
						}
					});
				}
			});
		}
		</SCRIPT>
	</head>

	<body>
		<div class="top">
			<div class="logo">
				<img src="${pageContext.request.contextPath}/web/imgs/htlogo.jpg" width="480" height="47" />
			</div>
			<div class="right">
				欢迎您！${sessionInfo.loginName} [${sessionInfo.roleNames}]
				<a href="javascript:void(0)" onclick="logout()">退出登录</a>
				<!-- 
					<a href="#">修改密码</a>
				 -->
			</div>
		</div>
		<div class="content">
			<div class="right">
				<!--日历标题-->
				<div class="title">
					<img src="${pageContext.request.contextPath}/web/imgs/pic1.gif" width="6" height="6" />
					日历
				</div>
				<!--/日历标题-->
				<!--日历-->
				<div style="height:180px;">
					<div id="calendar"></div>
				</div>
				<!--/日历-->
				<!--公告+提醒-->
				<div class="title">
					<ul>
						<li id="cp1" class="cpover" onMouseOver="setTab_('cp',1,5,'cpover')">
							公告<span class="tabRefresh"><a href="javascript:void(0);" onclick="javascript:document.frames('announcementIframe').location.reload()" class="icon-mini-refresh"></a></span>
						</li>
						<li id="cp2" onMouseOver="setTab_('cp',2,5,'cpover')">
							系统提醒<span class="tabRefresh"><a href="javascript:void(0);" onclick="javascript:document.frames('warnIframe').location.reload()" class="icon-mini-refresh"></a></span>
						</li>
					</ul>
				</div>
				<div class="conts">
					<div id="cp_con1">
						<iframe width="100%" scrolling="auto" frameborder="0" onload="javascript:void(0);" name="announcementIframe" id="announcementIframe" src="${pageContext.request.contextPath}/qtmk/announcementAction!noAuth_tabAnnounce.html"></iframe>
					</div>
					<div id="cp_con2" style="display: none;">
						<iframe width="100%" scrolling="no"  frameborder="0" onload="javascript:void(0);" name="warnIframe" id="warnIframe" src="${pageContext.request.contextPath}/qtmk/remindWarnAction!noAuth_tabRemindWarn.html"></iframe>
					</div>
				</div>
				<!--/公告+提醒-->
			</div>
			<div class="left">
				<div class="nav">
					<ul>
						<k:security key="XSGL_QTXS">
						<li>
							<a href="${pageContext.request.contextPath}/xsgl/sale.html">
								<img src="${pageContext.request.contextPath}/web/imgs/navxsgl.jpg" width="104" height="35" /> 
							</a>
						</li>
						</k:security>
						<k:security key="XSGL_XSTH">
						<li>
							<a href="${pageContext.request.contextPath}/xsgl/saleReturn.html">
								<img src="${pageContext.request.contextPath}/web/imgs/nav-xsth.jpg" width="104" height="35" /> 
							</a>
						</li>
						</k:security>
						<k:security key="XSGL_KCCX">
						<li>
							<a href="${pageContext.request.contextPath}/xsgl/amount.html">
								<img src="${pageContext.request.contextPath}/web/imgs/nav-kcgl.jpg" width="104" height="35" /> 
							</a>
						</li>
						</k:security>
						<k:security key="XSGL_HYGL">
						<li>
							<a href="${pageContext.request.contextPath}/xsgl/member.html">
								<img src="${pageContext.request.contextPath}/web/imgs/nav-hygl.jpg" width="104" height="35" /> 
							</a>
						</li>
						</k:security>
						<k:security key="XSGL_RJQS">
						<li>
							<a href="${pageContext.request.contextPath}/xsgl/settlement.html">
								<img src="${pageContext.request.contextPath}/web/imgs/nav-rjqs.jpg" width="104" height="35" /> 
							</a>
						</li>
						</k:security>
						<k:security key="XSGL_XSJLCX">
						<li>
							<a href="${pageContext.request.contextPath}/xsgl/salelist.html">
								<img src="../web/imgs/navxsglcx.jpg" width="104" height="35" /> 
							</a>
						</li>
						</k:security>
					</ul>
				</div>
				<div class="cont">
					销售退货

				</div>
			</div>
		</div>
		<div class="foot">
			Copyright @ 2012 huaicai.com 浙ICP备10000000号
			<br />
			杭州怀才商贸有限公司 服务电话：400-000-0000
		</div>
		<script language="javascript" type="text/javascript">
		function showDiv(){
		document.getElementById('popDiv').style.display='block';
		document.getElementById('popIframe').style.display='block';
		document.getElementById('bg').style.display='block';
		}
		function closeDiv(){
		document.getElementById('popDiv').style.display='none';
		document.getElementById('bg').style.display='none';
		document.getElementById('popIframe').style.display='none';
		}
		</script>
		<!--弹出框信息-->
		<div id="popDiv" class="mydiv" style="display: none;">
			<div class="title">
				<a href="javascript:closeDiv()">关闭窗口</a>新增会员
			</div>
			<div class="cont">
				<table width="100%" border="0">
					<tr>
						<td align="right">
							办卡日期：
						</td>
						<td>
							<input type="text" id="textfield2" class="input1"
								name="textfield2">
						</td>
						<td align="right">
							会员编号：
						</td>
						<td>
							<input type="text" id="textfield2" class="input1"
								name="textfield2">
						</td>
						<td align="right">
							客户姓名：
						</td>
						<td>
							<input type="text" id="textfield2" class="input1"
								name="textfield2">
						</td>
					</tr>
					<tr>
						<td align="right">
							会员类别：
						</td>
						<td>
							<input type="text" id="textfield2" class="input1"
								name="textfield2">
						</td>
						<td align="right">
							手&nbsp;&nbsp;&nbsp;&nbsp;机：
						</td>
						<td>
							<input type="text" id="textfield2" class="input1"
								name="textfield2">
						</td>
						<td align="right">
							农历生日：
						</td>
						<td>
							<input type="text" id="textfield2" class="input1"
								name="textfield2">
						</td>
					</tr>
					<tr>
						<td align="right">
							阳历生日：
						</td>
						<td>
							<input type="text" id="textfield2" class="input1"
								name="textfield2">
						</td>
						<td align="right">
							消费金额：
						</td>
						<td>
							<input type="text" id="textfield2" class="input1"
								name="textfield2">
						</td>
						<td align="right">
							积&nbsp;&nbsp;&nbsp;&nbsp;分：
						</td>
						<td>
							<input type="text" id="textfield2" class="input1"
								name="textfield2">
						</td>
					</tr>
					<tr>
						<td align="right">
							客户分类：
						</td>
						<td>
							<input type="text" id="textfield2" class="input1"
								name="textfield2">
						</td>
						<td>
							&nbsp;
						</td>
						<td>
							&nbsp;
						</td>
						<td align="right">
							&nbsp;
						</td>
						<td>
							&nbsp;
						</td>
					</tr>
					<tr>
						<td align="right">
							备&nbsp;&nbsp;&nbsp;&nbsp;注：
						</td>
						<td colspan="5">
							<textarea name="textarea" id="textarea" cols="58" rows="5"></textarea>
						</td>
					</tr>
					<tr>
						<td colspan="5">
							&nbsp;
						</td>
						<td>
							<a href="#" class="button2 dis_block">添加</a>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<div id="bg" class="bg" style="display: none;"></div>
		<iframe id='popIframe' class='popIframe' frameborder='0'></iframe>
	</body>
</html>
